<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>tango.stdc.stringz</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "tango.stdc.stringz";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/tango.stdc.stringz.html" class="symbol">tango.stdc.stringz</a></h1>
  
<p class="sec_header">License:</p>BSD style: see <a href="http://www.dsource.org/projects/tango/wiki/LibraryLicense">license.txt</a>
<p class="sec_header">Version:</p>Initial release: October 2006
<p class="sec_header">Author:</p>Keinfarbton &amp; Kris
<dl>
<dt class="decl">char* <a class="symbol _function" name="toStringz" href="./htmlsrc/tango.stdc.stringz.html#L21" kind="function" beg="21" end="39">toStringz</a><span class="params">(char[] <em>s</em>, char[] <em>tmp</em> = null)</span>; <a title="Permalink to this symbol" href="#toStringz" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.stdc.stringz.html#L21">#</a></dt>
<dd class="ddef">
<div class="summary">Convert array of chars to a C-style 0 terminated string.
 Providing a tmp will use that instead of the heap, where
 appropriate.</div></dd>
<dt class="decl">char*[] <a class="symbol _function" name="toStringz:2" href="./htmlsrc/tango.stdc.stringz.html#L51" kind="function" beg="51" end="67">toStringz</a><span class="params">(char[] <em>tmp</em>, char*[] <em>dst</em>, char[][] <em>strings</em>...)</span>; <a title="Permalink to this symbol" href="#toStringz:2" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.stdc.stringz.html#L51">#</a></dt>
<dd class="ddef">
<div class="summary">Convert a series of char[] to C-style 0 terminated strings, using 
 tmp as a workspace and dst as a place to put the resulting char*'s.
 This is handy for efficiently converting multiple strings at once.</div>
Returns a populated slice of dst
<p class="sec_header">Since:</p>0.99.7</dd>
<dt class="decl">char[] <a class="symbol _function" name="fromStringz" href="./htmlsrc/tango.stdc.stringz.html#L73" kind="function" beg="73" end="76">fromStringz</a><span class="params">(char* <em>s</em>)</span>; <a title="Permalink to this symbol" href="#fromStringz" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.stdc.stringz.html#L73">#</a></dt>
<dd class="ddef">
<div class="summary">Convert a C-style 0 terminated string to an array of char</div></dd>
<dt class="decl">wchar* <a class="symbol _function" name="toString16z" href="./htmlsrc/tango.stdc.stringz.html#L82" kind="function" beg="82" end="88">toString16z</a><span class="params">(wchar[] <em>s</em>)</span>; <a title="Permalink to this symbol" href="#toString16z" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.stdc.stringz.html#L82">#</a></dt>
<dd class="ddef">
<div class="summary">Convert array of wchars s[] to a C-style 0 terminated string.</div></dd>
<dt class="decl">wchar[] <a class="symbol _function" name="fromString16z" href="./htmlsrc/tango.stdc.stringz.html#L94" kind="function" beg="94" end="97">fromString16z</a><span class="params">(wchar* <em>s</em>)</span>; <a title="Permalink to this symbol" href="#fromString16z" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.stdc.stringz.html#L94">#</a></dt>
<dd class="ddef">
<div class="summary">Convert a C-style 0 terminated string to an array of wchar</div></dd>
<dt class="decl">dchar* <a class="symbol _function" name="toString32z" href="./htmlsrc/tango.stdc.stringz.html#L103" kind="function" beg="103" end="109">toString32z</a><span class="params">(dchar[] <em>s</em>)</span>; <a title="Permalink to this symbol" href="#toString32z" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.stdc.stringz.html#L103">#</a></dt>
<dd class="ddef">
<div class="summary">Convert array of dchars s[] to a C-style 0 terminated string.</div></dd>
<dt class="decl">dchar[] <a class="symbol _function" name="fromString32z" href="./htmlsrc/tango.stdc.stringz.html#L115" kind="function" beg="115" end="118">fromString32z</a><span class="params">(dchar* <em>s</em>)</span>; <a title="Permalink to this symbol" href="#fromString32z" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.stdc.stringz.html#L115">#</a></dt>
<dd class="ddef">
<div class="summary">Convert a C-style 0 terminated string to an array of dchar</div></dd>
<dt class="decl">size_t <a class="symbol _function" name="strlenz" href="./htmlsrc/tango.stdc.stringz.html#L124" kind="function" beg="124" end="132">strlenz</a><span class="tparams">(T)</span><span class="params">(T* <em>s</em>)</span>; <a title="Permalink to this symbol" href="#strlenz" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.stdc.stringz.html#L124">#</a></dt>
<dd class="ddef">
<div class="summary">portable strlen</div></dd></dl>
</div>
<div id="footer">
  <p>Copyright (c) 2006 Keinfarbton. All rights reserved</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:03:51 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>